package com.example.mvvm_base.mvvm.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.example.mvvm_base.userbean.Money;

@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void addMoney(Money money);
    @Delete
    void delMoney(Money money);
    @Update
    void updateMoney(Money money);
    @Query("select * from users_money where username=:username")
    Money getMoney(String username);

}
